{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2024-07-22T16:26:15.844416Z",
     "start_time": "2024-07-22T16:26:13.889574Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": "\"Hello! As an AI language model, I don't have feelings or emotions, but I'm here to help you with any questions or information you need. What can I help you with today?\""
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from langchain_openai import ChatOpenAI\n",
    "from config import MOONSHOT_CONFIG\n",
    "\n",
    "llm = ChatOpenAI(**MOONSHOT_CONFIG)\n",
    "\n",
    "response = llm.invoke(\"Hello, how are you?\")\n",
    "\n",
    "response.content"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
